﻿using System.Drawing;
using System.Drawing.Imaging;

namespace WebImageResizer
{
	/// <summary>
	/// Interface defining basic image operations
	/// </summary>
	public interface IImageTool
	{
		Bitmap Resize(Bitmap source, int? width, int? height, bool preservePerspective);
		Bitmap Rotate(Bitmap source, float angle);
		Bitmap Zoom(Bitmap source, float zoomFactor);
		Bitmap ToGreyScale(Bitmap source);
		byte[] Encode(Bitmap source, ImageFormat imageFormat);
	}
}